package com.ztx.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ztx.pojo.Menu;
import com.ztx.service.MenuService;
import com.ztx.mapper.MenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author ztx
* @description 针对表【menu】的数据库操作Service实现
* @createDate 2023-11-07 18:01:09
*/
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu>
    implements MenuService{

    @Autowired
    MenuMapper menuMapper;

    @Override
    public List<Menu> getMenu(Long userId) {
        return menuMapper.getMenu(userId);
    }
}




